Platform Explorer / Nuxeo Platform 2021.26

Extension point errorhandlers

Documentation

Define a set key/exception to be used to output error message

Contribution Descriptors

  • Class: org.nuxeo.ecm.platform.web.common.exceptionhandling.descriptor.ErrorHandlersDescriptor

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-platform-web-common-2021.26.5.jar /OSGI-INF/exception-handling-contrib.xml
    <extension point="errorhandlers" target="org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingService">
        <errorHandlers bundle="messages" defaultpage="/nuxeo_error.jsp" loggerName="nuxeo-error-log">
          <handlers>
            <handler code="404" error=".*DocumentNotFoundException" message="Error.Document.Not.Found"/>
            <handler code="403" error=".*SecurityException" message="Error.Insuffisant.Rights" page="/nuxeo_error_security.jsp"/>
          </handlers>
        </errorHandlers>
      </extension>